//Icons are elements to be plotted on the map
//They include x & y for screen coordinates
//& a mouse-over function

public class Icon {
	
	float x;
	float y;
	float width;
	float height;
	
	public boolean mouseOver()
    {
        if(GLOBAL.processing.mouseX > x && GLOBAL.processing.mouseX < x + width && 
                        GLOBAL.processing.mouseY > y && GLOBAL.processing.mouseY < y + height) return true;
        return false;
    }
	
	public void drawInfoBox(String[] args) {
		GLOBAL.processing.noStroke();
		GLOBAL.processing.fill(200);
		GLOBAL.processing.rect(0,600,1024,720);
		
		int y1 = 619;
		GLOBAL.processing.fill(0);
		GLOBAL.processing.text("INFO", 40, 603);
		
		for(int x = 0; x < args.length; ++x) {
			GLOBAL.processing.text(args[x], 40, y1);
			y1 += 14;
		}
	}
}
